package com.java1234.entity;

/**
  * @Project: Blog
  * @Title: PageBean
  * @Description: 分页Model类
  * @author: zhangxue
  * @date: 2016年12月18日下午1:03:29
  * @company: webyun
  * @Copyright: Copyright (c) 2015
  * @version v1.0
 */
public class PageBean {

	private int page; // 第几页
	private int pageSize; // 每页记录数
	private int start;  // 起始页
	
	public PageBean(int page, int pageSize) {
		this.page = page;
		this.pageSize = pageSize;
	}
	
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	
	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStart() {
		return (page-1)*pageSize;
	}

	@Override
	public String toString() {
		return "PageBean [page=" + page + ", pageSize=" + pageSize + ", start=" + start + "]";
	}
	
}
